import {redirect} from "react-router-dom";

export const protectedLoader = () => {
    if (!localStorage.getItem("access_token")){
        return redirect("login")
    }
    return null
}
